package com.lier.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lier.common.exception.EmailExistException;
import com.lier.common.exception.UsernameExistException;
import com.lier.common.utils.PageUtils;
import com.lier.common.vo.GiteeTokenVo;
import com.lier.common.vo.MemberLoginVo;
import com.lier.common.vo.MemberRegisterVo;
import com.lier.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author lier
 * @email 664478853@qq.com
 * @date 2025-06-06 16:22:20
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo MemberRegisterVo);

    void checkEmailUnique(String email) throws EmailExistException;
    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity giteeLogin(GiteeTokenVo giteeTokenVo);
}

